package com.mycompany.virtualApp.dao;

import com.mycompany.virtualApp.entity.ClickDetails;
import com.mycompany.virtualApp.entity.User;
import com.mycompany.virtualApp.mapper.ClickMapper;
import com.mycompany.virtualApp.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/12/6 0006.
 */
@Repository("userDao")
public class UserDaoImpl implements UserDao {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> selectByParam(Map<String, Object> map) {
        return userMapper.selectByParam(map);
    }

    @Override
    public int insert(User user) {
        return userMapper.insert(user);
    }

    @Override
    public User selectOneByParam(Map<String, Object> map) {
        return userMapper.selectOneByParam(map);
    }
}
